package com.wjw.compositereuse.reuse01;

/**
 * TODO: 描述
 *
 * @author ikaros
 * @date 2024/7/17 0:36
 * @see <a href="ikaros@qq.com">mailTo: ikaros@qq.com</a>
 */
public class CarCreator {
    public static void main(String[] args) {
        GasolineCar gasolineCar = new GasolineCar();
        gasolineCar.move("燃油车");
        ElectricCar electricCar = new ElectricCar();
        electricCar.move("新能源汽车");
        RedGasolineCar redGasolineCar = new RedGasolineCar();
        redGasolineCar.move("红色燃油车");
        GreenGasolineCar greenGasolineCar = new GreenGasolineCar();
        greenGasolineCar.move("绿色燃油车");
        RedElectricCar redElectricCar = new RedElectricCar();
        redElectricCar.move("红色新能源车");
        GreenElectricCar greenElectricCar = new GreenElectricCar();
        greenElectricCar.move("绿色新能源车");
    }
}
